package com.ryskoo.common.dto.customer;


import com.ryskoo.common.constant.CustomerParamConstant;
import com.ryskoo.common.dto.BasicDTO;

public class VendorDTO extends BasicDTO{
	
	private static final long serialVersionUID = 1424272334424013189L;

	/** 登录账号 */
    private String loginName;
    
    /** 登录密码 */
    private String password;
    
    /** 手机号 */
    private String mobile;
    
    /** logo图片 */
    private String logoImage;
    
    /** 账号状态：1激活 2冻结 */
    private String activeState;
    
    /** 商户名称 */
    private String vendorName;
    
    /** 商户类型：1.供应商 2.自营 */
    private String vendorType;
    
    /** 销售模式：1.采销   2.代销 */
    private String vendorPattern;
    
    /** 是否有线下门店：0.没有  1.有 */
    private String offlineStore;
    
	/** 店铺风格,后台配置店铺风格，前台根据设置的风格进行不同展示，一阶段默认红、绿、橙、黄 */
	private String vendorStyle;
    
    /** 所属业务员Id */
    private String staffId;
    
    /** 所属行业 */
    private String industryCate;

	/* 是否启用运费模板 */
	private boolean enableFreight = false;

	/* 计价方式： 1.按件数   2.按重量  */
	private int calcType = CustomerParamConstant.CALC_TYPE_ITEM;
    
    /** 商户数据信息 */
    private VendorInfoDTO vendorInfo;
    
    /** 是否发送短信通知 */
    private boolean sendMessage = false;
    
    /** 是否重置密码 */
    private boolean resetPassword = false;
    
    /** 商户类型 - 中文名 */
    private String vendorTypeName;
    
    /** 销售模式 - 中文名 */
    private String vendorPatternName;

    /** 是否有线下门店 - 中文名 */
    private String offlineStoreName;
    
    /** 账号状态 - 中文名 */
    private String activeStateName;

    /** 行业 - 中文名 */
    private String industryName ;

    /*月销商品数量*/
    private int monthSell;

    /** 登录员工 */
    private VendorManagerDTO vendorManger ;
    
	/** 商户优惠信息 */
	private VendorDiscountsDTO vendorDiscount;
    
    /** 基础信息 */
    private VendorBasicDTO vendorBasic ;
    
    public String getLogoImage() {
		return logoImage;
	}

	public void setLogoImage(String logoImage) {
		this.logoImage = logoImage;
	}

	public VendorManagerDTO getVendorManger() {
		return vendorManger;
	}

	public void setVendorManger(VendorManagerDTO vendorManger) {
		this.vendorManger = vendorManger;
	}

	public String getIndustryName() {
		return industryName;
	}

	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}
	
	public String getOfflineStoreName() {
		if("1".equals(this.offlineStore)){
			return "存在";
		}else{
			return "不存在";
		}
	}

	public void setOfflineStoreName(String offlineStoreName) {
		this.offlineStoreName = offlineStoreName;
	}

	public String getActiveStateName() {
		return CustomerParamConstant.getActiveStateNameByKey(this.activeState);
	}
	
	public void setActiveStateName(String activeStateName) {
		this.activeStateName = activeStateName;
	}
	
	public String getVendorTypeName() {
		return CustomerParamConstant.getVendorTypeNameByKey(this.vendorType);
	}

	public void setVendorTypeName(String vendorTypeName) {
		this.vendorTypeName = vendorTypeName;
	}

	public String getVendorPatternName() {
		return CustomerParamConstant.getVendorPatternNameByKey(this.vendorPattern);
	}

	public void setVendorPatternName(String vendorPatternName) {
		this.vendorPatternName = vendorPatternName;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getActiveState() {
		return activeState;
	}

	public void setActiveState(String activeState) {
		this.activeState = activeState;
	}

	public String getVendorName() {
		return vendorName;
	}

	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}

	public String getVendorType() {
		return vendorType;
	}

	public void setVendorType(String vendorType) {
		this.vendorType = vendorType;
	}

	public String getVendorPattern() {
		return vendorPattern;
	}

	public void setVendorPattern(String vendorPattern) {
		this.vendorPattern = vendorPattern;
	}

	public String getOfflineStore() {
		return offlineStore;
	}

	public void setOfflineStore(String offlineStore) {
		this.offlineStore = offlineStore;
	}

	public String getStaffId() {
		return staffId;
	}

	public void setStaffId(String staffId) {
		this.staffId = staffId;
	}

	public String getIndustryCate() {
		return industryCate;
	}

	public void setIndustryCate(String industryCate) {
		this.industryCate = industryCate;
	}


	public boolean isSendMessage() {
		return sendMessage;
	}

	public void setSendMessage(boolean sendMessage) {
		this.sendMessage = sendMessage;
	}

	public boolean isResetPassword() {
		return resetPassword;
	}

	public void setResetPassword(boolean resetPassword) {
		this.resetPassword = resetPassword;
	}

	public VendorInfoDTO getVendorInfo() {
		return vendorInfo;
	}

	public void setVendorInfo(VendorInfoDTO vendorInfo) {
		this.vendorInfo = vendorInfo;
	}

	public int getMonthSell() {
		return monthSell;
	}

	public void setMonthSell(int monthSell) {
		this.monthSell = monthSell;
	}

	public VendorBasicDTO getVendorBasic() {
		return vendorBasic;
	}

	public void setVendorBasic(VendorBasicDTO vendorBasic) {
		this.vendorBasic = vendorBasic;
	}

	public String getVendorStyle() {
		return vendorStyle;
	}

	public void setVendorStyle(String vendorStyle) {
		this.vendorStyle = vendorStyle;
	}

	public VendorDiscountsDTO getVendorDiscount() {
		return vendorDiscount;
	}

	public void setVendorDiscount(VendorDiscountsDTO vendorDiscount) {
		this.vendorDiscount = vendorDiscount;
	}

	public boolean isEnableFreight() {
		return enableFreight;
	}

	public void setEnableFreight(boolean enableFreight) {
		this.enableFreight = enableFreight;
	}

	public int getCalcType() {
		return calcType;
	}

	public void setCalcType(int calcType) {
		this.calcType = calcType;
	}
}